<?php
	require_once("pre.php");
	require_once("auth.php");
	
	if(!isset($action)) $action="";
	
?>
<?php if(! est_autorise("acces_configuration")) exit; ?>
<?php
	require_once("../classes/Variable.class.php");

	if($action == "modifier"){
	
		$variable = new Variable();

 		$variable->charger($nom);
 		$variable->valeur = $valeur;	
 		$variable->maj();
 		
		ActionsModules::instance()->appel_module("modvariable", $variable);
		
		header("Location: variable.php");
	}		
	


?>
